---
layout: m1x_soap
title: Attribute Types
---

<h3><a name="product_attribute.types-Module%3AProductAttributesAPI"></a>Module: Product Attributes API</h3>

<h4><a name="product_attribute.types-Resource%3Aproductattribute"></a>Resource: product_attribute</h4>


<h5><a name="product_attribute.types-Method%3A"></a>Method: </h5>
<ul>
	<li>product_attribute.types (SOAP V1)</li>
	<li>catalogProductAttributeTypes (SOAP V2)</li>
</ul>


<p>Allows you to retrieve the list of possible attribute types.</p>

<p><b>Arguments:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> sessionId </td>
<td> Session ID </td>
</tr>
</tbody></table>



<p><b>Return:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> array </td>
<td> result </td>
<td> Array of catalogAttributeOptionEntity </td>
</tr>
</tbody></table>


<p>The <b>catalogAttributeOptionEntity</b> content is as follows:</p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> label </td>
<td> Option label </td>
</tr>
<tr>
<td> string <br class="atl-forced-newline" /> </td>
<td> value <br class="atl-forced-newline" /> </td>
<td> Option value </td>
</tr>
</tbody></table>


<p><b>Faults:</b></p>

<p><em>No Faults.</em></p>

<h4><a name="product_attribute.types-Examples"></a>Examples</h4>

<h5><a name="product_attribute.types-RequestExampleSOAPV1"></a>Request Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/soap/?wsdl');
$sessionId = $proxy-&gt;login('apiUser', 'apiKey');

$result = $proxy-&gt;call(
    $sessionId,
    "product_attribute.types"
);

echo "&lt;pre&gt;";
var_dump($result);</pre>
		</div>
</div></div>

<h5><a name="product_attribute.types-RequestExampleSOAPV2"></a>Request Example SOAP V2</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy-&gt;login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary

$result = $proxy-&gt;catalogProductAttributeTypes($sessionId);
var_dump($result);</pre>
		</div>
</div></div>

<h5><a name="product_attribute.types-ResponseExampleSOAPV1"></a>Response Example SOAP V1</h5>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: java; gutter: false">array
  0 =&gt;
      'value' =&gt; 'text'
      'label' =&gt; 'Text Field'
  1 =&gt;
      'value' =&gt; 'textarea'
      'label' =&gt; 'Text Area'
  2 =&gt;
      'value' =&gt; 'date'
      'label' =&gt; 'Date'
  3 =&gt;
      'value' =&gt; 'boolean'
      'label' =&gt; 'Yes/No'
  4 =&gt;
      'value' =&gt; 'multiselect'
      'label' =&gt; 'Multiple Select'
  5 =&gt;
      'value' =&gt; 'select'
      'label' =&gt; 'Dropdown'
  6 =&gt;
      'value' =&gt; 'price'
      'label' =&gt; 'Price'
  7 =&gt;
      'value' =&gt; 'media_image'
      'label' =&gt; 'Media Image'</pre>
		</div>
</div></div>

				    
Create the Magento文件系统所有者                   			    
